<?php
$this->placeholder ( 'title' )->set ( 'DB Config' );
$this->placeholder ( 'menu' )->set ( '<div id="menu">
	<ul>
		<li><a href="/admin">Admin</a></li>
		<li><a href="/tasks">Tarefas</a></li>
		<li><a href="/logout">' . App_Icons::getIcon ( 'Exit', '/images/exit.png' ) . 'Sair</a></li>
	</ul>
</div>' );

if ($this->errors) {
	echo App_Icons::getIconTable ( 'users', '/images/db.png', 'Base de Dados - [Login]' );
	echo '<br /><div class="entry">';
	
	$error = new App_Messages ( );
	$error->setMessageType ( 'error' );
	$error->setMessage ( $this->custom_errors );
	echo $error->displayMessage ();
	
	echo $this->form->render ();
	echo '</div>';
} else {
	echo '<br /><div class="entry">';
	echo "<h2>A configuração ocorreu sem problemas.</h2>";
	echo '</div>';
}